from setuptools import find_packages, setup


def parse_requirements(filename):
    line_iter = (line.strip() for line in open(filename))
    return [line for line in line_iter if line and not line.startswith("#")]


requirements = parse_requirements("requirements.txt")
test_requirements = requirements
test_requirements.append("pytest")

setup(
    # ext_modules=cythonize("thingiverse/adapter/base/*.pyx"),
    author="thingiverse",
    author_email="ibopo@126.com",
    python_requires=">=3.6",
    classifiers=[
        "Development Status :: 2 - Pre-Alpha",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: MIT License",
        "Natural Language :: English",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.6",
        "Programming Language :: Python :: 3.7",
        "Programming Language :: Python :: 3.8",
    ],
    description="Python Boilerplate contains all the boilerplate you need to create a Python package.",
    entry_points={
        "console_scripts": [
            "thingiverse=thingiverse.__main__:main",
        ],
    },
    install_requires=requirements,
    license="MIT license",
    include_package_data=True,
    keywords="thingiverse",
    name="thingiverse",
    packages=find_packages(include=["thingiverse", "thingiverse.*"]),
    test_suite="tests",
    tests_require=test_requirements,
    url="https://github.com/bopo/thingiverse",
    version="0.1.2",
    zip_safe=False,
)
